package com.demo.app6.service.impl;

import com.demo.app6.dao.ProductMapper;
import com.demo.app6.entity.Product;
import com.demo.app6.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductMapper mapper;

    @Override
    public List<Product> getList() {
        return mapper.getList();
    }
}
